package com.xiaotu.es.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhangxiao
 * @create 2022-04-29 10:58
 */
@Data
@Document(indexName = "star_work_total", shards = 3, replicas = 2)
public class StarWorkTotal {

    @Id
    @Field(type = FieldType.Integer)
    private Integer starId;

    @Field(type = FieldType.Integer)
    private Integer workTotal;

}
